package com.matrix.java.chap_11.example;

public class Case11_05 {
    public static void main(String[] args) {
        displayObject(new CircleFromSimpleGeometricObject("red", false, 1));
        displayObject(new RectangleFromSimpleGeometricObject("red", false, 1, 1));
    }

    public static void displayObject(SimpleGeometricObject object) {
        System.out.println("Created on " + object.getDateCreated() +
                ". Color is " + object.getColor());
    }
}
